home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: alt.msdos.programmer,comp.lang.c
- Subject: Re: Pascal program works but not C program!
- Date: 7 Jan 1996 21:35:08 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4cq3dc$akp@solutions.solon.com>
- References: <4cdpr2$psi@lugb.latrobe.edu.au> <4cp3vc$8nh@brahms.tfi.be> <4cpqt6$9r8@solutions.solon.com> <821069300snz@genesis.demon.co.uk>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <821069300snz@genesis.demon.co.uk>,
- Lawrence Kirby <fred@genesis.demon.co.uk> wrote:
- >In article <4cpqt6$9r8@solutions.solon.com>
- > seebs@solutions.solon.com "Peter Seebach" writes:
- >>>void main (int argc, char **argv)
- >>Yup.
-
- >Oops!
-
- Let this be a lesson to all of you - even when you *do* know what you're
- doing, take the time to browse the post and make sure you didn't do
- anything particularly stupid.
-
- Well, there. I've made a mistake in news this year, now I can relax,
- and maybe '97 will be the year that I post actively in several groups
- without making an obvious mistake.
-
- (For those unclear: The declaration above is not legal C, and results
- in undefined behavior. Many books get this wrong. And to give this
- alt.msdos.programmer relevance, where do you think the famed errorlevel
- *comes* from? The return from main().)
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1995 Peter Seebach.
- C/Unix proto-wizard -- C/Unix questions? Send mail for help. No, really!
- Using trn? Weird new newsgroup problem? I know the fix! Email me!
- The *other* C FAQ - ftp taniemarie.solon.com /pub/c/afq - Not A Flying Toy
-